#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 crane <crane@gosun>
#
# Distributed under terms of the MIT license.

"""

"""

import random


class Solution:
    def __init__(self):
        pass

    def face_poker(self, lst):
        first, second = lst[:10], lst[10:]
        first = [ 1-e for e in first]
        self.check(first, second)

    def check(self, first, second):
        cnt_f = 0
        for e in first:
            if e == 1: cnt_f += 1

        cnt_s = 0
        for e in second:
            if e == 1: cnt_s += 1

        print(cnt_f, cnt_s)
        assert cnt_f == cnt_s


def test():
    s = Solution()

    lst = 10 * [1] + 42 * [0]
    random.shuffle(lst)
    # random.shuffle(lst)
    # random.shuffle(lst)
    # random.shuffle(lst)
    # random.shuffle(lst)
    # random.shuffle(lst)
    print(lst)

    s.face_poker(lst)
    # s.face_poker()


def main():
    print("start main")
    test()

if __name__ == "__main__":
    main()
